/*2025年11月16日AI开发*/

/* ===== 登录页面背景图片 - 简洁实现（已注释） ===== */

body[data-path="login"] {
    background-image: url('/assets/theme/images/beijin.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-color: transparent !important;
}





/* ===== 登录按钮样式 ===== */
/* 登录界面"登录"按钮背景色设置为 #2296f3 */
/* 登录按钮样式修复 */
.page-card .btn.btn-primary,
.page-card .btn-login,
.page-card .btn-primary,
.login-content .btn.btn-primary {
  background-color: #2296f3 !important;
  border-color: #2296f3 !important;
  color: white !important;
}

/* 确保登录按钮在所有状态下都保持蓝色 */
.page-card .btn.btn-primary:hover,
.page-card .btn-login:hover,
.page-card .btn-primary:hover {
  background-color: #1e88e5 !important;
  border-color: #1e88e5 !important;
}

/* 登录按钮点击后（active）和焦点状态的样式 */
.page-card .btn.btn-primary:active,
.page-card .btn-login:active,
.page-card .btn.btn-primary:focus,
.page-card .btn-login:focus,
.page-card .btn-primary:active,
.page-card .btn-primary:focus {
  background-color: #1976d2 !important;
  border-color: #e0e0e0 !important;  /* 浅灰色边框 */
  border-width: 1px !important;       /* 窄边框 */
  box-shadow: none !important;        /* 移除阴影 */
  color: white !important;
}

/* 确保输入框焦点时按钮边框也是浅灰色 */
.page-card input:focus + .page-card-actions .btn.btn-primary,
.page-card input:focus + .page-card-actions .btn-login,
.page-card input:focus + .page-card-actions .btn-primary {
  border-color: #e0e0e0 !important;
  border-width: 1px !important;
}

/* ===== 登录框尺寸加大12%，输入框按钮高度统一为34px ===== */

/* 整个登录框加大12% */
.page-card {
    transform: scale(1.12);
    transform-origin: top center;
    margin: 20px auto;
}

/* 确保登录框内容不溢出 */
.page-card .page-card-head,
.page-card .page-card-body,
.page-card .page-card-actions {
    transform: scale(1/1.12);
    transform-origin: top center;
}

/* 输入框基础样式保留（Frappe默认样式 + 用户自定义调整） */
.page-card input[type="text"],
.page-card input[type="email"],
.page-card input[type="password"] {
    height: 34px !important;
    padding: 8px 40px 8px 12px !important; 
    font-size: 14px !important;
    line-height: 1.4 !important;
    border-radius: 6px !important;
}

/* 输入框在有图标容器内时，增加左内边距为图标留出空间 */
.page-card .email-field input,
.page-card .password-field input {
    padding-left: 40px !important; /* 为左侧图标留出40px空间 */
}

/* 调整图标位置和大小（覆盖Frappe默认位置） */
.page-card .field-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    z-index: 2 !important;
    color: #74808B !important;
    pointer-events: none !important;
}

/* 确保输入框容器相对定位 */
.page-card .email-field,
.page-card .password-field {
    position: relative !important;
}

/* 密码显示/隐藏按钮位置调整（覆盖Frappe默认位置） */
.page-card .toggle-password {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* 按钮高度设置为34px */
.page-card .btn {
    height: 34px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 链接按钮高度设置为34px */
.page-card a.btn {
    height: 34px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

/* 小按钮高度设置为34px */
.page-card .btn-sm {
    height: 34px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
}

/* 大按钮高度设置为34px */
.page-card .btn-lg {
    height: 34px !important;
    padding: 8px 20px !important;
    font-size: 15px !important;
}

/* 确保页面卡片-actions容器高度适应 */
.page-card-actions {
    margin-top: 15px !important;
    min-height: 34px !important;
}

/* 表单组间距调整 */
.page-card .form-group {
    margin-bottom: 15px !important;
}

/* ===== 登录页页脚样式 ===== */

/* 覆盖默认的 .web-footer 样式 - 使用最强优先级 */
html body div.web-footer,
html body main.web-footer,
html body .web-footer,
body div.web-footer,
body main.web-footer,
body .web-footer,
div.web-footer,
main.web-footer,
.web-footer {
    padding: 0 !important;
    height: 60px !important;
    max-height: 60px !important;
    min-height: 60px !important;
    background-color: #112d4e !important;
    border-top: 1px solid #e2e2e2 !important;
    margin-top: auto !important;
    color: #ffffff !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    position: relative !important;
}

/* 确保页脚内容完全居中 */
.web-footer .footer-content,
.web-footer .copyright,
.web-footer p,
.web-footer span,
.web-footer div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}

/* 针对内联样式的强制覆盖 */
.web-footer[style] {
    height: 60px !important;
    max-height: 60px !important;
    min-height: 60px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* 针对登录页的特别选择器 */
body.for-login .web-footer,
body.for-signup .web-footer,
body.for-forgot .web-footer {
    height: 60px !important;
    max-height: 60px !important;
    min-height: 60px !important;
    padding: 0 !important;
    background-color: #112d4e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* 针对佛山智造领航科技文本的特别居中 */
.web-footer::after,
.web-footer .copyright::after,
.web-footer p::after {
    content: '' !important;
}

/* 绝对居中任何文本内容 */
.web-footer * {
    text-align: center !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 确保页面底部的页脚容器也居中 */
.page-footer {
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
}

/* 页脚内容居中 */
.web-footer > * {
    color: #ffffff !important;
    text-align: center !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 特别针对版权信息的居中 */
.web-footer p,
.web-footer span,
.web-footer div,
.web-footer .text-center {
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
    width: 100% !important;
}

/* 确保登录页面页脚居中显示 */
.for-login + .page-footer,
.for-signup + .page-footer,
.for-forgot + .page-footer,
.for-email-login + .page-footer {
    text-align: center;
}